package com.xomily.devops.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xomily.common.core.domain.AjaxResult;
import com.xomily.devops.domain.dashboard.Dashboard;
import com.xomily.devops.service.IDevDashboardService;


/**
 * 控制台
 * 
 */
@RestController
@RequestMapping("/devops/dashboard")
public class DevDashboardController
{
    @Autowired
    private IDevDashboardService devDashboardService;
    
    @GetMapping()
    public AjaxResult getInfo() throws Exception
    {
    	
    	Dashboard dashboard= devDashboardService.getDashboardInfo();
        return AjaxResult.success(dashboard);
    }
}
